<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="base.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
	 新建文档--${project.projectName }
</title>
<link href="${basePath }/styles/style.css" rel="stylesheet" type="text/css" />
<link href="${basePath }/scripts/ke/skins/default.css" rel="stylesheet" type="text/css" />
<link href="${basePath }/scripts/easy_validator/css/validate.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${basePath}/scripts/jquery.js"></script>
<script type="text/javascript" src="${basePath }/scripts/easy_validator/js/easy_validator.js"></script>
<script type="text/javascript" src="${basePath }/scripts/easy_validator/js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="${basePath }/scripts/ke/kindeditor.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$(".btn_submit").click(function(){
			$("form:last").submit();		
		});
		KE.show({
			id:'content',
			imageUploadJson : '../../upload_json.jsp',  
            fileManagerJson : '../../file_manager_json.jsp',  
            allowFileManager : true,  
            width:'600px',  
            height:'400px'
		});
	});
</script>
</head>

<body>	    
	<%@ include file="header.jsp"%>
		<%@ include file="secondary-bar.jsp"%>
		<%@ include file="sidebar.jsp"%>
	<div id="right">
    <div class="column">
    	<h3 class="tabs_involved">
	       <img src="images/task.png" />新建文档
        </h3>
        <hr />
        <div class="module_content">
        	<form action="document!add.jspx" method="post">
        	<div class="issue_items">
            	<h4 class="issue_title">标题</h4>
                <input type="text" class="input_style issues_title" name="document.title"   tip="不能为空" reg="^.+$" tabindex="1"/>
            </div>
            <div class="issue_items">
            	<h4 class="issue_title">内容</h4>
            	<div class="content_div">
                	<textarea id="content" name="document.content" class="issues_content" style="width:90%;height:300px;" tip="不能为空" reg="^.+$" tabindex="2"></textarea>
                </div> 
            </div>
            <input type="hidden" name="document.project.id" value="${project.id }" />
            </form>   
            </div>
              <div class="actions">
                <span class="new_task">
                <a  class="btn_submit"  href="#">
                	创建文档
                </a>
                </span>                    
            </div> 
        </div>	
    </div>
</body>
</html>
